package com.shitou.springai1.user.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.UUID;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConversationRequest {
    private String question;
    private String sessionId; // 会话ID，用于维持对话上下文
    private boolean includeImages = true;

    public ConversationRequest(String question) {
        this.question = question;
        this.sessionId = UUID.randomUUID().toString().substring(0, 8); // 生成简短会话ID
    }
}
